/**
  ETFRoot project, Anyang Normal University && IMP-CAS
  \class ETFOnlineSource
  \brief to process data stream from daq while it's working, i.e., during the
  experiment
  \author SUN Yazhou, asia.rabbit@163.com
  \since 2021-09-28
  \date 2021-09-28 last modified
  \attention
  changelog
  <table>
  <tr>  <th>Date        <th>Author      <th>Description                    </tr>
  <tr>  <td>2021-09-28   <td>Asia Sun    <td>file created                   </tr>
  </table>

  \copyright Copyright (c) 2021 Anyang Normal U. && IMP-CAS with LGPLv3 LICENSE
*/

#ifndef ETFOnlineSource_h
#define ETFOnlineSource_h

#include "FairOnlineSource.h"

class ETFOnlineSource : public FairOnlineSource{
public:
  ETFOnlineSource();
  virtual ~ETFOnlineSource();

  void SetInputDataStream(Int_t *data){ fInputDataStream = data; }
  Int_t *GetInputDataStream();

  ClassDef(ETFOnlineSource, 0); ///< to process online data

protected:
  Int_t *fInputDataStream; ///< the data stream to be processed, from Daq
};

#endif
